package com.zpyr.mvc.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import org.mybatis.spring.SqlSessionTemplate;

@Controller
public class BlogCont {
	
	@Autowired
	private SqlSessionTemplate sqlSession;
	private final String url ="/home/blog"; 

	@RequestMapping(value=url + ".zpr" , params={"!nouse"})
	public ModelAndView dday_main() {// RequestParam <- 파라미터가 없으면 400에러를 발생함. 지나친 400에러 발생은 문제의 소지가 있기에 지켜보기로 함.
		
		ModelAndView mav = new ModelAndView("myhome/blog/blog_main");
		return mav;
	}
	
		
}